<?php
/*
 * Created on 24.03.2009 by MasterGenny
 *
 */
include_once('../dataAccess/classes/Game.php5');
include_once('../dataAccess/dao/GameDAO.php5');

$game = new GameVO();
//$game->show();

$dao = new GameDAO();
$dao->manageGames($log, $game);
$game = $dao->findByNummerAndSaison("LH 44", 2009);
//echo $game->getGameInfo()."<br/>";
//$game->show(); 

$games1 = $dao->findLastGames(1, "2009-12-25");
foreach ($games1 as $game1){
	echo $game1->getGameInfo()."<br/>";
}
echo "-----<br/>";
$games2 = $dao->findNextGames(1, "2009-12-25");
foreach ($games2 as $game2){
	echo $game2->getGameInfo()."<br/>";
}
?>
